package config

type RocketMQConfig struct {
	Web      Web      `yaml:"web" json:"web"`
	Log      Log      `yaml:"log" json:"log"`
	RocketMQ RocketMQ `yaml:"rocketmq" json:"rocketmq"`
}

type Web struct {
	ListenAddress string `yaml:"listen_address" json:"listen_address"`
	MetricsPath   string `yaml:"metrics_path" json:"metrics_path"`
}

type Log struct {
	File File `yaml:"file" json:"file"`
}

type File struct {
	Enable bool   `yaml:"enable" json:"enable"`
	Path   string `yaml:"path" json:"path"`
}

type RocketMQ struct {
	NameServer NameServer `yaml:"nameserver" json:"nameserver"`
}

type NameServer struct {
	UseDomain           bool     `yaml:"use_domain" json:"use_domain"`
	NameServerIpAddress []string `yaml:"nameservers" json:"nameservers"`
	NameServerDomain    string   `yaml:"domain" json:"domain"`
	NameServerPort      int      `yaml:"port" json:"port"`
}
